var name = '小王', age = 17;
var obj = {
    name:'小张',
    objAge:this.age,
    myFun:function(){
        console.log(this.name + '年龄：' + this.age);
    }
}

var fav = '盲僧';
function shows(){
    console.log(this.fav);
}

console.log(obj.objAge);
console.log(obj.myFun());

shows();

var db = {
    name:'德玛',
    age:99
}

obj.myFun.call(db);
obj.myFun.apply(db);
obj.myFun.bind(db)();


var obj1={
    name:'小张',
    objAge:this.age,
    myFun:function(fm, t){
        console.log(this.name + ", 年龄 " + this.age + ", 来自 " + fm + ", 去往 " + t);
    }
}

obj1.myFun.call(db, '成都', '上海');
obj1.myFun.apply(db, ['成都', '上海']);
obj1.myFun.bind(db, '成都', '上海')();